package array
{
	import flash.utils.ByteArray;
	
	import util.BytesUtil;

	public dynamic class StringArray extends Array
	{
		public function StringArray(...parameters)
		{
			super(parameters);
		}
		public function fill(bytes:ByteArray):void
		{
			var count:uint = BytesUtil.readU30(bytes);
			var length:uint = 0;
			if(count > 0){
				this[0] = "*";
				for(var i:int = 1; i < count; i++){
					length = BytesUtil.readU30(bytes);
					this.push(bytes.readUTFBytes(length));
					trace(this[this.length -1]);
				}
			}
		}
	}
}